<#compress>
<!DOCTYPE html>
<html>
  <head>
    <title>group.html</title>
	
    <meta name="keywords" content="keyword1,keyword2,keyword3">
    <meta name="description" content="this is my page">
    <meta name="content-type" content="text/html; charset=UTF-8">
    <base href="${webroot}">
    <#include "../../template/easyui.ftl" parse="true" encoding="UTF-8">
    <script type="text/javascript" src="${webroot}res/rbac/hashSet.js"></script>
    <!-- <script type="text/javascript" src="${webroot}res/rbac/tree.js"></script>
    <script type="text/javascript" src="${webroot}res/rbac/grid.js"></script>
    
    
    <link rel="stylesheet" type="text/css"  href="${webroot}res/rbac/css/page.css"/> -->
  </head>
  <body>
   	    <div class="easyui-layout" data-options="fit:true">
            <div data-options="region:'west',split:true,border:false"  style="width:20%;">
              <div class="easyui-panel" style="padding:5px;border: 0px">
					<ul id="grouptree"  class="easyui-tree"
					data-options="loadFilter:convertTreeAppendRoot,onSelect:treeSelect,lines:true"
					 style="padding-top: 10px;"></ul>
				</div>
            </div>
            <div data-options="region:'center',border:false">
				  <table class="easyui-datagrid"  id="groupgrid" rownumbers="true" pagination="true"
				  		 data-options="pageSize:20,striped:true,border:false,url:'group/grouplist.grid',method:'get',fit:true,toolbar:'#tb',
				  		 onDblClickRow:clickGroupRow,rowStyler:rowstyle">
					<thead>
						<tr>
							<th data-options="field:'',width:50,checkbox:true"></th>
								<th data-options="field:'id',width:50">ID</th>
								<th data-options="field:'g_name',width:280">组织名称</th>
								<th data-options="field:'g_parent'" hidden="hidden"></th>
								<th data-options="field:'g_order',width:100">排序号</th>
								<th data-options="field:'g_deptno',width:100">部门编码</th>
								<th data-options="field:'g_remarks',width:250">备注</th>
								<th data-options="field:'g_status',width:60,formatter:formatStatus,align:'center'">状态</th>
						</tr>
					</thead>
				</table>
				<div id="tb" style="padding:5px;height:auto">
					<div style="margin-bottom:5px">
						用户组名称: <input id="gnameinput" class="easyui-textbox" data-options="prompt:'输入关键字进行查询'" style="width:140px;">
						部门编码: <input id="deptnoinput" class="easyui-textbox" data-options="prompt:'输入关键字进行查询'" style="width:140px;">
						<a href="javascript:groupQuery();" class="easyui-linkbutton" iconCls="icon-search" >查询</a><br>
						<a href="javascript:void(0);" class="easyui-linkbutton" plain="true" iconCls="icon-load" onclick="$('#grouptree').tree('expandAll');">展开</a>
						<a href="javascript:void(0);" class="easyui-linkbutton" plain="true" iconCls="icon-load" onclick="$('#grouptree').tree('collapseAll');">收缩</a>
						${新增!""}${修改!""}${禁用!""}${删除!""}
						<!-- <a href="#" class="easyui-linkbutton" iconCls="icon-add" plain="true" onclick="openGroup();">新增</a>
						<a href="#" class="easyui-linkbutton" iconCls="icon-edit" plain="true" onclick="editGroup();">修改</a>
						<a href="#" class="easyui-linkbutton" iconCls="icon-cancel" plain="true" onclick="deleteGroup();">删除</a>
						<a href="#" class="easyui-linkbutton" iconCls="icon-no" plain="true" onclick="disbleGroup();">禁用</a> -->
					</div>
				</div>
            </div>
            
            <div id="gdialog" class="easyui-dialog" title="编辑部门组织" style="width:350px;height:460px;padding-left: 20px;padding-top: 10px;" 
						data-options="resizable:true,modal:true,buttons:'#dlg-buttons',closed:true">
					<form  name="gfrom" id="gfrom" method="post"> 
						<div>
						    <input type="hidden" name="id" value="" >						
							<font style="font-size: 14px;">用户组名:</font><br/>
							<input name="GName" id="GName" maxlength="100"  class="easyui-textbox" data-options="required:true" style="width: 300px;" ><br>
						</div>
						<div>
							<font style="font-size: 14px;">父节点:</font><br/>
								<input id="GParent" name="GParent" class="easyui-combotree" 
								data-options="panelHeight:400,loadFilter:convertTreeAppendRoot,required:true,lines:false"
								  style="width: 300px;">
						</div>
						<div>
							<font style="font-size: 14px;">排序号:</font><br/>
							<input name="GOrder" id="GOrder"  style="width: 300px;"  class="easyui-numberbox" data-options="min:0,precision:0,max:1000"><br>				
						</div>
						<div>
							<font style="font-size: 14px;">部门编码:</font><br/>			
							<input name="GDeptno" id="GDeptno" maxlength="30"  class="easyui-textbox" data-options="required:true" style="width: 300px;"><br>							
						</div>
						<div>
							<font style="font-size: 14px;">备注:</font><br/>			
							<input name="GRemarks" id="GRemarks" maxlength="200"  class="easyui-textbox" data-options="multiline:true"  style="width: 300px;height: 150px;"><br>
						</div>
					</form>
				</div>
				<div id="dlg-buttons">
					<a href="javascript:void(0)" class="easyui-linkbutton" onclick="saveGroup()">保存</a>
					<a href="javascript:void(0)" class="easyui-linkbutton" onclick="closedialog()">取消</a>
				</div>
       </div>
  </body>
</html>
<script type="text/javascript" src="${webroot}res/rbac/group.js"></script>
</#compress>